package com.v9.system.service;

import com.v9.common.core.service.IAbstractUidService;
import com.v9.common.core.service.LoginInfoService;
import com.v9.system.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * 用户 业务层
 *
 * @author shilun
 */
public interface UserInfoService extends IAbstractUidService<UserInfo>, LoginInfoService, UserDetailsService {
    void bindRole(String pin,List<Long> roles);

    /**
     * 跟据部门查找用户
     * @param deptId
     * @return
     */
    List<UserInfo> queryUserByDeptId(Long deptId);

    /**
     * 跟据角色获取用户
     * @param roleId
     * @return
     */
    List<UserInfo> queryUserByRoleId(Long roleId);
}
